<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>Accounts list</h2>

<a href="admin.htm?act=addaccount">Add new account</a>
<br/><br/>

<table style="width: 400px; border-collapse: collapse;">
    <tr>
        <td>id</td>
        <td>
            Login
        </td>
        <td>
            Password
        </td>
        <td>
            Role
        </td>
    </tr>
    <c:forEach items="${accounts}" var="account">
        
        <tr>
            <td>
                ${account.id}
            </td>
            <td>
                ${account.login}
            </td>
            <td>
                ${account.password}
            </td>
            <td>
                ${account.role}
            </td>
        </tr>
    </c:forEach>
</table>